<include file="Public:header" />

<div class="body">
    <b>续费合同管理：</b>
    &nbsp;&nbsp;&nbsp;&nbsp;[<a href="{:U('ppts/qt_xufei_stu_manger')}">未录续费合同学员</a>]
    &nbsp;&nbsp;&nbsp;&nbsp;[<a href="{:U('ppts/qt_xufei_hetong_manger')}">续费合同管理</a>]

    <br />
    <span id="pop" style="color:red;"></span><br />
<table width="800" border="1" cellpadding="0" cellspacing="0" style="border-collapse:collapse" bordercolor="#000000">
    <tr>
        <td width="12%" align="center">学员id</td>
        <td width="8%" align="center">学员姓名</td>
        <td width="15%" align="center">合同编号</td>
        <td width="8%" align="center">合同金额</td>
        <td width="8%" align="center">已支付</td>
        <td width="8%" align="center">余款</td>
        <td width="15%" align="center">录入时间</td>
        <td width="8%" align="center">学管师</td>
        <td align="center">操作</td>
    </tr>
    <foreach name="list" item="vo">
        <tr<php>if($vo['ready_price']<$vo['xh_hetong_price']) echo ' bgcolor="#ffb8b8"';</php>>
            <td align="center">{$vo.stu_no}</td>
            <td align="center">{$vo.stu_name}</td>
            <td align="center">{$vo.xh_no}</td>
            <td align="center">{$vo.xh_hetong_price}</td>
            <td align="center">{$vo.ready_price}</td>
            <td align="center"><php>echo $vo['xh_hetong_price']-$vo['ready_price'];</php></td>
            <td align="center">{$vo.xh_input_time}</td>
            <td align="center">{$vo.user_zsname}</td>
            <td align="center">
                <php>
                if($vo['ready_price']<$vo['xh_hetong_price']){
                    echo '[<a href="__APP__/ppts-qt_xufei_hetong_shoukuan?id='.$vo['stu_id'].'&k_id='.$vo['xh_id'].'&TB_iframe=true&height=200&width=350" class="thickbox">收款</a>]';
                }
            </php>
                [<a href="{:U('ppts/qt_view_xufei_hetong?id='.$vo['xh_id'])}">详细</a>]
            <php>
                if($vo['ready_price']>=$vo['xh_hetong_price']){
                    echo '[<a href="__APP__/ppts-qt_xufei_goumaikeshi?id='.$vo['stu_id'].'&k_id='.$vo['xh_id'].'&TB_iframe=true&height=200&width=350" class="thickbox">购买课时</a>]';
                }
            </php>
            </td>
        </tr>
    </foreach>
</table>
    <br/><br />
    <br />
    <br />
</div>
<include file="Public:ender" />